﻿<%@ Page Title="Lista de Funcionalidade" Language="C#" MasterPageFile="~/Site.Master"
    AutoEventWireup="true" CodeBehind="Funcionalidade.aspx.cs" Inherits="Follow.Adm.Funcionalidade" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="Titulo">
        <%: Title %>
    </div>
    <asp:Image ID="Image2" runat="server" ImageUrl="~/images/linhas_17.png" />
    <br />
    <asp:Label id="lblMensagem" runat="server" Text="Mensagem." />
    <br />
    <center>
        <asp:Label ID="lblPesquisa" Text="Pesquisar:" runat="server" /><br />
        <asp:TextBox ID="txtPesquisa" runat="server" Width="300px"/><br />
        <asp:Button ID="btnPesquisa" runat="server" Text="Pesquisar" OnClick="btnPesquisa_Click" CssClass="Botao"/>
        <asp:Button ID="btnIncluir" runat="server" Text="Incluir" 
            PostBackUrl="~/Adm/FuncionalidadeOperacao.aspx" CssClass="Botao" 
            onclick="btnIncluir_Click" />
    </center>
    <br />
    <br />
    <asp:GridView ID="gvFuncionalidade" runat="server" AllowPaging="True" AutoGenerateColumns="False"
        DataKeyNames="IDFuncionalidade" PageSize="100" Width="765px" OnRowCommand="gvFuncionalidade_RowCommand"
        HorizontalAlign="Center" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None"
        BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical" 
        onselectedindexchanged="gvFuncionalidade_SelectedIndexChanged">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField HeaderText="Funcionalidade" DataField="descricao" />
            <asp:BoundField HeaderText="Url" DataField="url" />
            <asp:ButtonField ButtonType="image" ImageUrl="~/Images/editar.png" CommandName="Editar"
                HeaderText="Editar" ItemStyle-HorizontalAlign="Center" />
            <asp:ButtonField ButtonType="image" ImageUrl="~/Images/excluir.png" CommandName="Excluir"
                HeaderText="Excluir" ItemStyle-HorizontalAlign="Center" />
        </Columns>
        <FooterStyle BackColor="#CCCC99" />
        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
        <RowStyle BackColor="#F7F7DE" />
        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FBFBF2" />
        <SortedAscendingHeaderStyle BackColor="#848384" />
        <SortedDescendingCellStyle BackColor="#EAEAD3" />
        <SortedDescendingHeaderStyle BackColor="#575357" />
    </asp:GridView>
</asp:Content>
